.class public Lcom/waiqin365/lightapp/visit/VisitManagerActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field public static a:Ljava/lang/String;


# instance fields
.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/Button;

.field private f:Landroid/widget/ListView;

.field private g:Landroid/widget/LinearLayout;

.field private h:Landroid/widget/LinearLayout;

.field private i:Ljava/util/HashMap;

.field private j:Landroid/os/Handler;

.field private k:Ljava/util/ArrayList;

.field private l:Lcom/waiqin365/lightapp/visit/b/bo;

.field private m:Ljava/lang/String;

.field private n:Landroid/widget/TextView;

.field private o:Landroid/content/Context;

.field private p:I

.field private q:Lcom/waiqin365/lightapp/view/NoNetView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-string/jumbo v0, "update-VisitManagerActivity"

    sput-object v0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->a:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->p:I

    return-void
.end method

.method private a()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/visit/go;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/visit/go;-><init>(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->j:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->c()V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)I
    .locals 2

    iget v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->p:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->p:I

    return v0
.end method

.method private b()V
    .locals 4

    const/16 v3, 0x1a

    const v0, 0x7f0c0c4f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->b:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0c51

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->c:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "title"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->c:Landroid/widget/TextView;

    const v1, 0x7f080850

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    :goto_0
    const v0, 0x7f0c0c52

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->d:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->d:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->d:Landroid/widget/TextView;

    const v1, 0x7f080851

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->d:Landroid/widget/TextView;

    invoke-static {v3, v3, v3}, Landroid/graphics/Color;->rgb(III)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const v0, 0x7f0c0691

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->e:Landroid/widget/Button;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->e:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0c56

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->f:Landroid/widget/ListView;

    const v0, 0x7f0c0c55

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->n:Landroid/widget/TextView;

    const v0, 0x7f0c00cb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/NoNetView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->q:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->q:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/NoNetView;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0c54

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->h:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0c57

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->g:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->h:Landroid/widget/LinearLayout;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    new-instance v0, Lcom/waiqin365/lightapp/visit/b/bo;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/visit/b/bo;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->l:Lcom/waiqin365/lightapp/visit/b/bo;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->f:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->l:Lcom/waiqin365/lightapp/visit/b/bo;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->l:Lcom/waiqin365/lightapp/visit/b/bo;

    new-instance v1, Lcom/waiqin365/lightapp/visit/gp;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/gp;-><init>(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/bo;->b(Lcom/waiqin365/lightapp/visit/b/bs;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->l:Lcom/waiqin365/lightapp/visit/b/bo;

    new-instance v1, Lcom/waiqin365/lightapp/visit/gq;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/gq;-><init>(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/bo;->c(Lcom/waiqin365/lightapp/visit/b/bs;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->l:Lcom/waiqin365/lightapp/visit/b/bo;

    new-instance v1, Lcom/waiqin365/lightapp/visit/gr;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/gr;-><init>(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/b/bo;->a(Lcom/waiqin365/lightapp/visit/b/bt;)V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->c:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "title"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->q:Lcom/waiqin365/lightapp/view/NoNetView;

    return-object v0
.end method

.method private c()V
    .locals 3

    const v0, 0x7f08056c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->showProgressDialog(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->i:Ljava/util/HashMap;

    const-string/jumbo v1, "conditions.planStatus"

    const-string/jumbo v2, "1"

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v0, Lcom/waiqin365/lightapp/visit/a/a/ay;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->m:Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->i:Ljava/util/HashMap;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/visit/a/a/ay;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v1, Lcom/waiqin365/lightapp/visit/a/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->j:Landroid/os/Handler;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/visit/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/visit/a/c;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/b;->start()V

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->g:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method private d()V
    .locals 3

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->o:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/visit/VisitNewPlanActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->overridePendingTransition(II)V

    return-void
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->h:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method private e()V
    .locals 4

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->o:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/cc;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/kehu/b/cc;-><init>()V

    const-class v2, Lcom/waiqin365/lightapp/visit/VisitPlanActivity;

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/cc;->f:Ljava/lang/String;

    const-string/jumbo v2, "nothing"

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/cc;->i:Ljava/lang/String;

    new-instance v2, Landroid/os/Bundle;

    invoke-direct {v2}, Landroid/os/Bundle;-><init>()V

    const-string/jumbo v3, "param"

    invoke-virtual {v2, v3, v1}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V

    invoke-virtual {v0, v2}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->overridePendingTransition(II)V

    return-void
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->n:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic h(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->o:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic i(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)Lcom/waiqin365/lightapp/visit/b/bo;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->l:Lcom/waiqin365/lightapp/visit/b/bo;

    return-object v0
.end method

.method static synthetic j(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)Landroid/widget/ListView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->f:Landroid/widget/ListView;

    return-object v0
.end method


# virtual methods
.method public back()V
    .locals 2

    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->setResult(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->finish()V

    const v0, 0x7f040020

    const v1, 0x7f040023

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->overridePendingTransition(II)V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 5

    const v4, 0x7f040022

    const v3, 0x7f040021

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->back()V

    goto :goto_0

    :sswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    const-string/jumbo v0, "customerVisit_hasPlan_addTemp_top"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    :goto_1
    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->e()V

    goto :goto_0

    :cond_0
    const-string/jumbo v0, "customerVisit_noPlan_addTemp_top"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_1

    :sswitch_2
    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->c()V

    goto :goto_0

    :sswitch_3
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->o:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/visit/VisitSearchActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "list"

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0, v4, v3}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->overridePendingTransition(II)V

    goto :goto_0

    :sswitch_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_1

    const-string/jumbo v0, "customerVisit_hasPlan_planManager"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    :goto_2
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->o:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0, v4, v3}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_1
    const-string/jumbo v0, "customerVisit_noPlan_planManager"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_2

    :sswitch_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_2

    const-string/jumbo v0, "customerVisit_hasPlan_record"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    :goto_3
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->o:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/visit/VisitRecordActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "title"

    const v2, 0x7f0804de

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0, v4, v3}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_2
    const-string/jumbo v0, "customerVisit_noPlan_record"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_3

    :sswitch_6
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-gtz v0, :cond_4

    :cond_3
    const-string/jumbo v0, "customerVisit_noPlan_addPlan"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    :cond_4
    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->d()V

    goto/16 :goto_0

    :sswitch_7
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-gtz v0, :cond_6

    :cond_5
    const-string/jumbo v0, "customerVisit_noPlan_addTemp"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    :cond_6
    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->e()V

    goto/16 :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c0691 -> :sswitch_3
        0x7f0c0c3d -> :sswitch_2
        0x7f0c0c4f -> :sswitch_0
        0x7f0c0c52 -> :sswitch_1
        0x7f0c0c58 -> :sswitch_7
        0x7f0c0c59 -> :sswitch_6
        0x7f0c0c5a -> :sswitch_4
        0x7f0c0c5b -> :sswitch_5
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    const/4 v1, 0x0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    iput-object p0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->o:Landroid/content/Context;

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030285

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->setContentView(I)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->m:Ljava/lang/String;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->i:Ljava/util/HashMap;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->k:Ljava/util/ArrayList;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->b()V

    new-instance v0, Lcom/waiqin365/lightapp/visit/gn;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/visit/gn;-><init>(Lcom/waiqin365/lightapp/visit/VisitManagerActivity;)V

    invoke-static {p0, v1, v1, v0}, Lcom/waiqin365/lightapp/kehu/c/b;->a(Landroid/content/Context;ZZLcom/waiqin365/lightapp/kehu/c/l;)V

    return-void
.end method

.method protected onResume()V
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->p:I

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitManagerActivity;->c()V

    :cond_0
    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onResume()V

    return-void
.end method
